package com.tedu.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 处理页面显示
 */
@Controller
@RequestMapping("/")
public class PageController {
    //显示
    @RequestMapping("/doIndexUI")
    public String doIndexUI() {
        return "starter";
    }


    @RequestMapping("/doPageUI")
    public String doPageUI() {
        return "common/page";
    }

    /**
     * 通用页面跳转
     * 使用的是rest架构
     * @return
     */

    @RequestMapping("/{module}/{moduleUI}")
    public String doMenuUI(@PathVariable String moduleUI) {
        return "sys/"+moduleUI;
    }



}
